-- GENERATED SPELL FOR [Illidari Slayer] --


function spell0_21639(pUnit, Event) --@Charge,n/a--
pUnit:FullCastSpellOnTarget(35570,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_21639', 2287, 1)
end

function spell1_21639(pUnit, Event) --@Cleave,n/a--
pUnit:FullCastSpellOnTarget(15496,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_21639', 588, 1)
end

function Sorts_21639(pUnit, Event)
local choix_sorts_21639 = math.random(0, 1)
if choix_sorts_21639 == 0 then
pUnit:RegisterEvent('spell0_21639', 1, 1)
end
if choix_sorts_21639 == 1 then
pUnit:RegisterEvent('spell1_21639', 1, 1)
end
end

function mob21639_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_21639', math.random(1500, 3000), 1)
end

function mob21639_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob21639_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob21639_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(21639, 1, 'mob21639_Action')
RegisterUnitEvent(21639, 2, 'mob21639_Leave')
RegisterUnitEvent(21639, 3, 'mob21639_Kill')
RegisterUnitEvent(21639, 4, 'mob21639_Die')
